package com.zdth.wxpush.controller;

import com.zdth.wxpush.common.ConName;
import com.zdth.wxpush.common.People;
import com.zdth.wxpush.util.WxPushUtil;
import me.chanjar.weixin.common.error.WxErrorException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Z-7
 * @Date 2022/8/29
 */
@RestController
@RequestMapping("/test")
public class TestController {
    @Autowired
    private WxPushUtil wxPushUtil;

    @GetMapping("send")
    public void test() throws WxErrorException {
        wxPushUtil.sendDog(People.QMW);
    }

    @GetMapping("sendWeather")
    public void s() throws WxErrorException {
    }
}
